chrome.contextMenus.create({
   title: "Envoyer vers Smart Kiwi",
   contexts:["selection"], 
   onclick: function(info, tab){ 
	   chrome.storage.sync.get('smartKiwiPort', function(data) {
			var smartKiwiPort = data.smartKiwiPort;					   
			var s = require('net').Socket();
			var request = 'SENDTEXT '+info.selectionText+' \n';
			s.connect(smartKiwiPort, 'localhost');
			alert(request);
			s.write(request);
			s.on('data', function(d){
				alert(d.toString());
			});

			s.end();
		});
	}
});